package com.bl.weilan.dao.model;

/**
 * Created by liangweikang on 19/6/24.
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by liangweikang on 2018/1/6.
 */
@Entity
@Data
@Table(name = "information")
@ApiModel(value = "InformationEntity", description = "通知")
@DynamicInsert
@DynamicUpdate
public class InformationEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "权重")
    private int weight;

    @ApiModelProperty(value = "图片")
    private String image;

    @ApiModelProperty(value = "链接")
    private String url;

    @ApiModelProperty(value = "类型id")
    @Column(name = "type_id")
    private String typeId;


    @ApiModelProperty(value = "类型名")
    @Column(name = "type_name")
    private String typeName;
}
